package mrms.api.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "sysconf", schema = "mrms", catalog = "")
public class SysconfEntity {
    private String k;
    private String v;

    @Id
    @Column(name = "k")
    public String getK() {
        return k;
    }

    public void setK(String k) {
        this.k = k;
    }

    @Basic
    @Column(name = "v")
    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysconfEntity that = (SysconfEntity) o;
        return Objects.equals(k, that.k) &&
                Objects.equals(v, that.v);
    }

    @Override
    public int hashCode() {

        return Objects.hash(k, v);
    }
}
